package com.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author: 柏竹
 * @Description: 格式化工具
 * @Date_Created_in: 2021-05-20 7:58
 * @Modified_By: Sans
 * @Project: 快递e栈
 */

public class DateFormatUtil {
    
    private static SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    
    
    public static String format(Date date){
        if (date == null){
            return null;
        }
        return format.format(date);
    }
    
    
}
